{% extends "base.html" %}
{% block title %}
题目详述 - {{ object.id }} {{object.title}} 
{% endblock %}

{% block content %}

<h2>{{object.id}} - {{object.title}} </h2>

<table>
  <tr>
    <td>时间限制</td><td> {{object.timelimit}} 毫秒</td>
  </tr>
  <tr>
    <td>内存限制</td><td>{{object.memorylimit}} K字节</td>
  </tr>
</table>

<h2>问题描述</h2>
{{object.description}} 

<table>
{% for image in images%}
   <tr><td>附图{{forloop.counter}}:</td></tr>
   <tr><td><img src="/images/{{image.image}}" /></td></tr>
{% endfor %}
</table>

<h2>输入</h2>
{{object.input|escape}}

<h2>输出</h2>
{{object.output|escape}}

<h2>输入样例</h2>
<pre>
{{object.sampleinput}}
</pre>

<h2>输出样例</h2>
<pre>
{{object.sampleoutput}}
</pre>

{% if object.hint %}
<h2>提示</h2>
<pre>
{{object.hint|escape}}
</pre>
{% endif %}

{% if object.origin %}
<h2>出处</h2>
{{object.origin}}
{% endif %}

<hr />
<table>
  <tr>
    <td>
      <a href="/problem/{{object.id}}/submit/">提交</a>
    </td>
    <td>
      <a href="/judge/?problem={{object.id}}">判题结果</a>
    </td>
    {% if user.is_superuser %}  <td><a href="./rejudge/">重新判断</a></td> {% endif %}

    <td>
{#      <a href="/mywiki/oj/{{object.id}}">讨论</a> #}
    </td>
</tr>
</table>

{% endblock %}
